<?php
 
 include_once "../lib/DAL/DangKyMon.php";

 class DangKyMonBLL{
    
    function __construct(){        
    }
    
    function __destruct(){        
    }
    
    function setDangKyMonBLL($row){
        $dkm = new DangKyMon();
        $dkm->setDangKyMon($row['ma_dkm'],$row['ma_lopmon'],$row['ma_sv'],$row['madm_ttdkm']);
        return $dkm;
    }
    
    public function insertDangKyMon($dkm){      
           $sql ="INSERT INTO tbl_dangkymon(ma_dkm, ma_lopmon, ma_sv, madm_ttdkm) 
                                    VALUES ('".$dkm->getma_dkm()."',
                                            '".$dkm->getma_lopmon()."',
                                            '".$dkm->getma_sv()."',
                                            '".$dkm->getmadm_ttdkm()."')" ;
            
            $result = mysql_query($sql) or die(mysql_error());
            return $result;       
    }
    
    
    
    
}
?>